package com.atdel.demo31;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @BelongsProject: java_study
 * @BelongsPackage: com.atdel.demo31
 * @Author: Del
 * @CreateTime: 2025-03-30  16:52
 * @Description: 爱好描述注解
 * @Version: 1.0
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface HobbyDescription {
    String[] hobbies() default {};
    int maxHobbies() default 5;
}